local CommonOHOH = _G.CommonOHOH;
local M = CommonOHOH.class.new(script, CommonOHOH.files.BaseComponent());

function M.new(self,...)
	return M(self,...);
end;

function M.ctor(self, parent)
	M.super.ctor(self, parent);
    self.unlockLevel=self.parent:WaitForChild_Loop("anchor.Attachment.BillboardGui.leve.num")
    self.unlockTip=self.parent:WaitForChild_Loop("anchor.Attachment.BillboardGui.TextLabel")

    if self.parent.isVip then
        self.unlockLevel.Text="v"
    else
        self.unlockLevel.Text=self.parent.unlockLevelId
        self.unlockTip.Text=_G.LanguageHelper:GetText2(888004,{self.parent.unlockLevelId})
    end
end;


return M